package com.song.day06.ch6_2;

import java.util.concurrent.ConcurrentLinkedDeque;

public class AddTask implements Runnable{

	private ConcurrentLinkedDeque<String> list;

	public AddTask(ConcurrentLinkedDeque<String> list) {
		super();
		this.list = list;
	}

	public void run() {
		String name = Thread.currentThread().getName();
		for(int i =0 ;i < 1000 ;i++)
		{
			list.add(name+" : Element "+i);
		}
		
		
	}
	
	
	
}
